import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'ios_tracking_sage_permission_method_channel.dart';

abstract class IosTrackingSagePermissionPlatform extends PlatformInterface {
  /// Constructs a IosTrackingSagePermissionPlatform.
  IosTrackingSagePermissionPlatform() : super(token: _token);

  static final Object _token = Object();

  static IosTrackingSagePermissionPlatform _instance = MethodChannelIosTrackingSagePermission();

  /// The default instance of [IosTrackingSagePermissionPlatform] to use.
  ///
  /// Defaults to [MethodChannelIosTrackingSagePermission].
  static IosTrackingSagePermissionPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [IosTrackingSagePermissionPlatform] when
  /// they register themselves.
  static set instance(IosTrackingSagePermissionPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<int> getTrackingSagePermission() {
    throw UnimplementedError(
        'getTrackingSagePermission() has not been implemented.');
  }

  Future<bool> requestTrackingSagePermission() {
    throw UnimplementedError(
        'requestTrackingSagePermission() has not been implemented.');
  }
}
